<template>
  <div class="">
    <el-popover
      placement="top-start"
      width="600"
      trigger="hover"
      style="position: absolute; top: 0px; left: 0px"
    >
      <div style="text-align: left">
        <el-divider>操作</el-divider>
        <!-- <el-card style> -->
        <!-- <el-button type="primary" @click="flyto">飞到阀门</el-button>
        <el-button type="primary" @click="flyaround">绕点旋转</el-button> -->
        <el-button type="primary" @click="iflujing = !iflujing"
          >路径播放</el-button
        >
        <!-- <el-button type="primary" @click="_earth.cameraViewManager.views[2].flyTo()">默认视角</el-button>
        <el-button type="primary" @click="_earth.cameraViewManager.views[3].flyTo()">地下视角</el-button> -->
        <el-button type="primary" @click="iftuceng = !iftuceng"
          >图层管理</el-button
        >
        <el-button type="primary" @click="shijiao(2)">默认视角</el-button>
        <el-button type="primary" @click="shijiao(1)">换热站</el-button>
        <el-button type="primary" @click="shijiao(3)">换热站1</el-button>
        <el-button type="primary" @click="flyaround()">旋转</el-button>
        <!-- </el-card> -->
      </div>

      <div slot="reference">
        <i
          class="el-icon-setting"
          style="cursor: pointer; font-size: 30px; color: chartreuse"
        ></i>
      </div>
    </el-popover>

    <lujingcom class="" v-show="iflujing"> </lujingcom>
    <tucengcom class="" v-show="iftuceng"> </tucengcom>
  </div>
</template>
<script>
import PolylineTrailMaterialProperty3 from "@/views/tongyongnn/ThreeDimensional/components/zhuoseqi/caizhi";

export default {
  name: "sanweiopr",

  props: {},
  data() {
    return {
      iflujing: false,
      iftuceng: false,
    };
  },
  computed: {},
  watch: {},
  mounted() {
    // this.loaddata();
  },
  methods: {
    loaddata() {},
    shijiao(type) {
      this.$root._earth.cameraViewManager.views[type].flyTo(5);
    },
    flyaround() {
      this.$root._earth.camera.flyAround(
        [(119.9536406 * Math.PI) / 180, (31.8619138 * Math.PI) / 180, 6],
        3000,
        [(360.0 * Math.PI) / 180, (-22 * Math.PI) / 180, 0],
        0.5,
        0.1
      );
    },
  },
};
</script>
<style lang='scss' scoped>
</style>